﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Views
{
    public partial class UserDetailPresenter
    {
        #region event

        public static event EventHandler<UserInsertEventArgs> Inserting;

        public static event EventHandler<UserInsertEventArgs> Inserted;

        public static event EventHandler<UserDeleteEventArgs> Deleteing;

        public static event EventHandler<UserDeleteEventArgs> Deleted;

        public static event EventHandler<UserUpdateEventArgs> Updateing;

        public static event EventHandler<UserUpdateEventArgs> Updated;

        public static event EventHandler<UserSelectEventArgs> Selecting;

        public static event EventHandler<UserSelectEventArgs> Selected;

        protected virtual void OnSelecting(UserSelectEventArgs e)
        {
            if (Selecting != null)
            {
                Selecting(this, e);
            }
        }

        protected virtual void OnSelected(UserSelectEventArgs e)
        {
            if (Selected != null)
            {
                Selected(this, e);
            }
        }

        protected virtual void OnDeleteing(UserDeleteEventArgs e)
        {
            if (Deleteing != null)
            {
                Deleteing(this, e);
            }
        }

        protected virtual void OnDeleted(UserDeleteEventArgs e)
        {
            if (Deleted != null)
            {
                Deleted(this, e);
            }
        }

        protected virtual void OnUpdateing(UserUpdateEventArgs e)
        {
            if (Updateing != null)
            {
                Updateing(this, e);
            }
        }

        protected virtual void OnUpdated(UserUpdateEventArgs e)
        {
            if (Updated != null)
            {
                Updated(this, e);
            }
        }

        protected virtual void OnInserting(UserInsertEventArgs e)
        {
            if (Inserting != null)
            {
                Inserting(this, e);
            }
        }

        protected virtual void OnInserted(UserInsertEventArgs e)
        {
            if (Inserting != null)
            {
                Inserted(this, e);
            }
        }

        #endregion
    }
}
